namespace Backoffice.Domain.Entities.App
{
    /// <summary>
    /// 系统设置功能
    /// </summary>
    public class AppSystemSetting : EntityBase
    {
        public string Key { get; private set; }
        public string Value { get; private set; }
        public string? Description { get; private set; }

        public AppSystemSetting(string key, string value, string? description = null)
        {
            Key = key;
            Value = value;
            Description = description;
        }

        public void UpdateValue(string value)
        {
            Value = value;
        }

        public void UpdateDescription(string? description)
        {
            Description = description;
        }
    }
}